package com.sttg.csp.common.consts;


/**
 * defined constants of system.
 * 
 */
public class SystemConst {

	/**
	 * The name of user object is stored in application session.
	 */
	public static final String SESSION_USER = "session_user";

	/**
	 * Operation type: -view
	 */
	public static final int OPERATION_TYPE_VIEW = 0;
	
	/**
	 * Operation type: -add
	 */
	public static final int OPERATION_TYPE_NEW = 1;

	/**
	 * Operation type: - modify
	 */
	public static final int OPERATION_TYPE_MODIFY = 2;

	/**
	 * Operation type: -delete
	 */
	public static final int OPERATION_TYPE_DELETE = 3;
	

	/**
	 * Operation type: - enable or activate
	 */
	public static final int OPERATION_TYPE_ENABLE = 4;
	
	/**
	 * Operation type: - disable or deactivate
	 */
	public static final int OPERATION_TYPE_DISABLE = 5;
	
	/**
	 * Operation type: self-registration
	 */
	public static final int OPERATION_TYPE_SELF_REGISTRATION = 6;
	
	/**
	 * Operation type: confirm-registration
	 */
	public static final int OPERATION_TYPE_CONFIRM_REGISTRATION = 7;
	
	/**
	 * The source of certificate list is key file
	 */
	public static final String KEY_FILE = "1";
	
	/**
	 * The source of certificate list is token
	 */
	public static final String USING_TOKEN = "1";
	
	/**
	 * Certificate type: HK Post Organization
	 */
	public static final String CER_TYPE_HK_ORG = "HK Post Organization";
	
	/**
	 * Certificate type: HK Post Personal
	 */
	public static final String CER_TYPE_HK_PERSONAL = "HK Post Personal";
	
	/**
	 * Certificate type: Digital Sign Organization
	 */
	public static final String CER_TYPE_DIGIT_ORG = "Digital Sign Organization";
	
	/**
	 * Certificate type: Digital Sign Personal
	 */
	public static final String CER_TYPE_DIGIT_PERSONAL = "Digital Sign|Personal";
	
	/**
	 * Status of cert association reg: Activated
	 */
	public static final String STATUS_ACTIVATED = "Activated";
	
	/**
	 * Status of cert association reg: Deactivated
	 */
	public static final String STATUS_DEACTIVATED = "Deactivated";
	
	/**
	 * Status of cert association reg: Pending confirm
	 */
	public static final String STATUS_PENDING_CONFIRM = "Pending confirm";
	
	/**
	 * Status of cert association reg: Pending confirm
	 */
	public static final String STATUS_PENDING_APPROVAL = "Pending approval";
	
	
}
